export default $axios => ({
    getInfo(){
        return $axios.get('/server/iotdata/info',{
            room:''
        })
    },
    getInfoSingle(room){
        return $axios.get('/server/iotdata/info',{
            room
        })
    },
    putIntruder(room,ts){
        return $axios.put('/server/iotdata/intruder_danger',{
            room,
            ts
        })
    },
    putTemperature(room,ts){
        return $axios.put('/server/iotdata/temperature_danger',{
            room,
            ts
        })
    },
    putHumidity(room,ts){
        return $axios.put('/server/iotdata/humidity_danger',{
            room,
            ts
        })
    },
    sos(room){
        return $axios.post('/server/iotdata/sos',room)
    }
})